package com.xdtech.sys.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-05-10 23:05:41
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="SYS_TASK")
public class Task extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="NAME")
	private String name;
	@Column(name="STATUS")
	private String status;
	@Column(name="CRON")
	private String cron;
	@Column(name="TARGET")
	private String target;
	@Column(name="METHOD")
	private String method;
	@Column(name="TASK_GROUP")
	private String taskGroup;
	@Column(name="REMARK")
	private String remark;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getStatus() {
		return status;
	}
	public void setCron(String cron) {
		this.cron = cron;
	}
	public String getCron() {
		return cron;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public String getTarget() {
		return target;
	}
	public String getTaskGroup()
	{
		return taskGroup;
	}
	public void setTaskGroup(String taskGroup)
	{
		this.taskGroup = taskGroup;
	}
	public String getRemark()
	{
		return remark;
	}
	public void setRemark(String remark)
	{
		this.remark = remark;
	}
	public String getMethod()
	{
		return method;
	}
	public void setMethod(String method)
	{
		this.method = method;
	}
}
